//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Daniel Hope','Herbst Theatre','San Francisco, CA','Tuesday','4/30/2024','8:00 PM','6395097','Daniel-Hope-4-30-2024'],['The Bobfather - Chinese Comedy Show','Herbst Theatre','San Francisco, CA','Saturday','5/4/2024','7:30 PM','6367450','The-Bobfather---Chinese-Comedy-Show-5-4-2024'],['Isaac and Nora','Herbst Theatre','San Francisco, CA','Sunday','5/5/2024','5:00 PM','6278568','Isaac-and-Nora-5-5-2024'],['Viano String Quartet','Herbst Theatre','San Francisco, CA','Tuesday','5/7/2024','8:00 PM','6395170','Viano-String-Quartet-5-7-2024'],['Secrets of Armenia','Herbst Theatre','San Francisco, CA','Friday','5/10/2024','7:30 PM','6302191','Secrets-of-Armenia-5-10-2024'],['Mayuko Kamio','Herbst Theatre','San Francisco, CA','Sunday','5/12/2024','3:00 PM','6395278','Mayuko-Kamio-5-12-2024'],['Einstein and Margarita','Herbst Theatre','San Francisco, CA','Wednesday','5/15/2024','8:00 PM','6202523','Einstein-and-Margarita-5-15-2024'],['Bruce Liu','Herbst Theatre','San Francisco, CA','Friday','5/17/2024','8:00 PM','6395168','Bruce-Liu-5-17-2024'],['San Francisco Philharmonic: Mendelssohn Symphony No. 3','Herbst Theatre','San Francisco, CA','Saturday','5/25/2024','7:30 PM','6395279','San-Francisco-Philharmonic--Mendelssohn-Symphony-No--3-5-25-2024'],['Golden Gate Symphony Orchestra & Chorus: Ode to Joy','Herbst Theatre','San Francisco, CA','Sunday','5/26/2024','2:00 PM','6395144','Golden-Gate-Symphony-Orchestra---Chorus--Ode-to-Joy-5-26-2024'],['San Francisco High School of the Arts: Spring Spectacular','Herbst Theatre','San Francisco, CA','Friday','5/31/2024','6:30 PM','6395280','San-Francisco-High-School-of-the-Arts--Spring-Spectacular-5-31-2024'],['In a Silent Way','Herbst Theatre','San Francisco, CA','Friday','6/21/2024','8:00 PM','6395281','In-a-Silent-Way-6-21-2024'],['Omid Djalili','Herbst Theatre','San Francisco, CA','Sunday','10/6/2024','8:00 PM','6260550','Omid-Djalili-10-6-2024'],['Marc-Andre Hamelin','Herbst Theatre','San Francisco, CA','Wednesday','4/23/2070','TBD','4161354','Marc-Andre-Hamelin-4-23-2070'],['40th Anniversary Concert','Herbst Theatre','San Francisco, CA','Saturday','4/26/2070','TBD','4161027','40th-Anniversary-Concert-4-26-2070'],['Alexander String Quartet & Robert Greenberg','Herbst Theatre','San Francisco, CA','Friday','5/16/2070','TBD','4161029','Alexander-String-Quartet---Robert-Greenberg-5-16-2070'],['Chamber Music: Alisa Weilerstein','Herbst Theatre','San Francisco, CA','Tuesday','4/7/2071','8:00 PM','4344059','Chamber-Music--Alisa-Weilerstein-4-7-2071']],'Herbst Theatre','http://www.ticketnetwork.com/ticket/Herbst-Theatre-events.aspx');